﻿//-----------------------------------------------------------------------
// <copyright>
// This file is subject to the terms and conditions of the Microsoft Public License (MS-PL).
// See http://www.microsoft.com/opensource/licenses.mspx#Ms-PL for more details.
// </copyright>
//----------------------------------------------------------------------- 
using System;
using System.Collections.Generic;

namespace Fulcrum.ViewModelGenerator.UnitTests
{
    static class StringGenerator
    {
        static Random rand = new Random();

        public static List<string> GetNames(int max)
        {
            var names = new List<string>();

            int numOfNames = rand.Next(max);
            for (int i = 0; i < numOfNames; i++)
            {
                names.Add(GetNames());
            }

            return names;
        }

        private static string GetNames()
        {
            int min = Convert.ToInt32('A');
            int max = min + 26 + 1;

            return Convert.ToString(rand.Next(min, max));
        }
    }
}
